home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / gemxx19.zoo / gem++19 / example / makefile < prev    next >
Makefile  |  1993-11-21  |  712b  |  43 lines

  1. LIBRARY=../lib/gem++.olb
  2. INC=../include
  3.  
  4. SRC=
  5. MAINSRC=example.cc acc.cc
  6. PROGS=example.prg acc.acc
  7. OBJ=$(subst .cc,.o,$(SRC))
  8. LDLIBS=-lgem -lg++
  9. LDFLAGS=
  10.  
  11. GXXINC:=$(INC),$(GXXINC)
  12.  
  13. C++FLAGS:=$(C++FLAGS) -O2
  14. #C++FLAGS:=$(C++FLAGS) -Wall
  15.  
  16. current: example.prg
  17.  
  18. all:    $(PROGS)
  19.  
  20. tfont: tfont.o $(LIBRARY)
  21.     $(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
  22.  
  23. acc.acc: acc.o $(LIBRARY)
  24.     $(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
  25.  
  26. example.prg: example.o $(LIBRARY)
  27.     $(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
  28.  
  29. $(PROGS):    $(OBJ)
  30.  
  31. clean:
  32.     rm $(OBJ) $(subst .cc,.o,$(MAINSRC))
  33.  
  34. clobber: clean
  35.     rm $(PROGS)
  36.  
  37. depend:
  38.     -$(CC) -M $(SRC) $(MAINSRC) >/tmp/make.123
  39.     sed 's/[a-z]:[^ ]*//g' /tmp/make.123 >depends
  40.     rm /tmp/make.123
  41.  
  42. include depends
  43.